/*
 * @Author: 王文晓wangwenxiao 3069459335@qq.com
 * @Date: 2025-07-27 13:14:57
 * @LastEditors: 王文晓wangwenxiao 3069459335@qq.com
 * @LastEditTime: 2025-07-27 18:51:34
 * @FilePath: \代码随想录c:\Users\晓\Desktop\前端\react\黑马react\资料\redux-meituan-finished\src\components\Count\index.js
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
import './index.scss'

const Count = ({ onPlus, onMinus, count }) => {
  return (
    <div className="goods-count">
      <span className="minus" onClick={onMinus}>-</span>
      <span className="count">{count}</span>
      <span className="plus" onClick={onPlus}>+</span>
    </div>
  )
}

export default Count
